#ifndef CAMERA_FORMAT_UTILS_HPP
#define CAMERA_FORMAT_UTILS_HPP

#include <cstdint>
#include <linux/videodev2.h>
#include <string>
#include <unordered_map>

namespace CameraFormatUtils {

extern const std::unordered_map<std::string, uint32_t> formatMap;

bool stringToFormat(const std::string &formatStr, uint32_t &outFormat);
bool formatToString(uint32_t format, std::string &outFormatStr);

} // namespace CameraFormatUtils

#endif // CAMERA_FORMAT_UTILS_HPP